package com.dandelion.business.mapper;

import com.dandelion.business.entity.SysMenu;
import com.dandelion.business.entity.SysUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author 宋发准
 * @since 2021-12-25
 */
public interface SysUserMapper extends BaseMapper<SysUser> {

    /**
     * 查询权限
     *
     * @param id id
     * @return {@link ArrayList}<{@link SysMenu}>
     */
    ArrayList<SysMenu> queryPerms(@Param("id") Long id);
}
